package com.fh.mapper.loan;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.fh.model.Page;
import com.fh.model.loan.ReducteOverdueInfo;
import com.fh.util.PageData;

/**
 * 罚息减免申请
 * 
 * @author yc
 *
 */
public interface ReducteOverdueInfoMapper {
    
	int insert(ReducteOverdueInfo info);

	int queryCountByCallLoanNid(String callLoanNid);

	List<PageData> findWaitPage(Page page);

	PageData queryByReduApplyId(String reduApplyId);

	ReducteOverdueInfo queryByReduApplyIdAudit(String reduApplyId);


	void updateByReduApplyId(ReducteOverdueInfo newInfo);
                  
	List<PageData> reduStatusPage(Page page);

	void updateReduStatusByReduApplyId(ReducteOverdueInfo info);

     Map<String,Object> reduInfoToanjianDesc(Map<String,Object> mao);
     //查询所有的审核通过并且未使用的罚息减免券
     List<ReducteOverdueInfo> queryAllUnUser();

	int updateReturnFeeStatus(@Param("order_no") String order_no, @Param("status") Integer status);
	
}